from django.contrib import admin
from planet.models import Planet, PlanetInfo, PlanetMessage

class PlanetAdmin(admin.ModelAdmin):
    list_display=('name','x', 'y','ally','activity','str_gouv_system')
    list_display_links = ('name',)
admin.site.register(Planet, PlanetAdmin)

class PlanetInfoAdmin(admin.ModelAdmin):
    list_display=('id','planet','planet_owner','last_update_date')
    list_display_links = ('id',)
    list_filter = ('planet_owner','last_update_date')
admin.site.register(PlanetInfo, PlanetInfoAdmin)

class PlanetMessageAdmin(admin.ModelAdmin):
    list_display=('planet','date', 'message')
    list_display_links = ('planet',)
    list_filter = ('date',)
admin.site.register(PlanetMessage, PlanetMessageAdmin)
